package com.dajie.pt.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.dajie.pt.dao.BlacklistDao;
import com.dajie.pt.entity.base.EntityDao;
import com.dajie.pt.model.AuditBlacklist;
import com.dajie.pt.service.BlacklistService;
import com.dajie.pt.service.base.BaseServiceImpl;

/**
 * Blacklist Manager.
 */
@Component
public class BlacklistServiceImpl extends BaseServiceImpl<AuditBlacklist, Long> implements
		BlacklistService<AuditBlacklist, Long>
{

	@Autowired
	protected BlacklistDao blacklistDao;

	public EntityDao getEntityDao()
	{
		return this.blacklistDao;
	}

	public List<String> saveNames(String userEmail, String names)
	{
		String[] saveNames = names.split(",");
		return new ArrayList<String>();
	}

	public List<String> findAllNames()
	{
		return blacklistDao.getAllBlackNames();
	}

	@Override
	public void removeByIdWithLog(Object logInfo, Long id)
	{
		super.removeByIdWithLog(logInfo, id);
	}

	@Override
	public int getCount()
	{
		// TODO Auto-generated method stub
		return 0;
	}
}
